package com.paradogs.gs.modules.world;

import com.paradogs.framework.annotations.serverHandler.PRHandler;
import com.paradogs.framework.annotations.serverHandler.PRMapping;
import com.paradogs.framework.misc.Ack;
import com.paradogs.framework.misc.GC;
import com.paradogs.gs.misc.Bow;
import com.paradogs.gs.misc.fastWrap.LongWrapper;
import com.paradogs.gs.modules.world.msg.CGWorldMove;

/** By @CodeAutoGeneratorModule */
@PRHandler
@PRMapping("world")
public class WorldHandler {

    @PRMapping("move")
    public GC<Ack> move(CGWorldMove cg) {
        Bow.owner().worldMgr().move(cg.getDirection());
        return GC.ok();
    }

    @PRMapping("attack")
    public GC<Ack> attack(LongWrapper cg) {
        Bow.owner().worldMgr().attack(cg.getVal());
        return GC.ok();
    }

    @PRMapping("pickup")
    public GC<Ack> pickup(LongWrapper cg) {
        Bow.owner().worldMgr().pickup(cg.getVal());
        return GC.ok();
    }

}